﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<div class="columnRight">
    <!-- Khung đăng nhập -->
    <div class="Tour_PromotionalRight">
        <div class="Bar_Tour_PromotionalRight">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">Đăng nhập</span>
        </div>
        <div class="ND_Tour_PromotionalRight">
            <% if (!WebConfiguration.IsRequestAuthentication)
               { %>
                <% using (Html.BeginForm("LogOnHome", "Home", FormMethod.Post, new { onsubmit = "return ValidateLogin();" }))
                   { %>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width = "120px" style="padding-left: 10px;">
                                    Tên đăng nhập: 
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 10px;">
                                    <%= Html.TextBox("LogOn_UserName", "", new { @style = "width: 150px;" })%>
                                </td>
                            </tr>
                            <tr>
                                <td width = "120px" style="padding-left: 10px;">
                                    Mật khẩu:
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-bottom: 5px; padding-left: 10px;">
                                    <%= Html.Password("LogOn_Password", "", new { @style = "width: 150px;" })%>
                                </td>
                            </tr>
                            <tr>
                                <td><a href="<%= Url.Action("ResetPassword", "Account") %>" style="text-decoration: underline; color: Navy; padding-left: 10px;" >Bạn quên mật khẩu?</a></td>
                            </tr>
                            <tr>
                            <td style="padding-left: 90px; padding-bottom: 5px; padding-top: 5px;">
                                <div>
							        <p>
								        <input type="submit" value="Đăng nhập" />
							        </p>
						        </div>
                            </td>
				        </tr>
                        </table>
                <%  } %>
            <% }
               else
               { %>
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width = "120px" style="padding-left: 10px;">
                            Chào bạn, <%= WebConfiguration.UserNameAuthentication %>, <a href="<%= Url.Action("LogOffHome", "Home")%>" style="text-decoration: underline; color: Navy;">Thoát</a>
                        </td>
                    </tr>
                    <tr>
                        <td><a href="<%= Url.Action("ChangePassword", "Account") %>" style="text-decoration: underline; color: Navy; padding-left: 10px;" >Thay đổi mật khẩu?</a></td>
                    </tr>
                    <% if (WebConfiguration.AllowAccessAdminCP)
                       { %>
                        <tr>
                            <td><a href="<%= Url.Action("Index", "Admin") %>" style="text-decoration: underline; color: Navy; padding-left: 10px;" >Vào trang quản trị</a></td>
                        </tr>
                    <% } %>
                    <tr height="10">
                        <td>
                        </td>
                    </tr>
                </table>
            <% } %>
        </div>
    </div>
    <!---------------------------------------- E ----------------------------------------->

    <!-- Hỗ trợ trực tuyến -->
    <div class="Tour_PromotionalRight">
        <div class="Bar_Tour_PromotionalRight">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">Hỗ trợ trực tuyến</span>
        </div>
        <div class="ND_Tour_PromotionalRight">
            <ul>
            <% foreach (var user in Model.HoTroModel.GetModel.LstObjModel)
               {  %>
                <li>
                    <a href="ymsgr:sendIM?<%= user.NickName %>">
                        <img title="Hỗ trợ " alt="Hỗ trợ " src="http://opi.yahoo.com/online?u=<%= user.NickName %>&m=g&t=2" border="0"/>
                    </a>
                    <div style="padding-left:5px;">
                        <a href="http://opi.yahoo.com/online?u=<%= user.NickName %>&m=g&t=2">Hỗ trợ: <%= user.HoTen %></a>
                    </div>
                </li>
            <% } %>
            </ul>
        </div>
    </div>
    <!---------------------------------------- E ----------------------------------------->

    <!-- LUONG NGUOI DUNG -->
    <div class="Tour_PromotionalRight">
        <div class="Bar_Tour_PromotionalRight">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">LƯỢNG NGƯỜI DÙNG</span>
        </div>
        <div class="ND_Tour_PromotionalRight">
            <div class="weather">
                <div class="rate2">
					<img src="../../../Content/Images/Home/stats.png" alt=""/>
					<span>Lượng truy cập: <%= Application["count_visit"].ToString()%></span>							
                </div>
                <div class="rate2">
					<img src="../../../Content/Images/Home/administrator-icon.png" alt=""/>
					<span>Online hiện thời: <%=Application["OnlineUsers"].ToString()%></span>
                </div>
            </div>
        </div>
    </div>
    <!---------------------------------------- E ----------------------------------------->

    <!-- DU BAO THOI TIET -->
    <div class="Tour_PromotionalRight">
        <div class="Bar_Tour_PromotionalRight">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">Dự báo thời tiết</span>
        </div>
        <div class="ND_Tour_PromotionalRightWhether">
            <% ArrayList lstWhether = WebConfiguration.ArrWhether;
               if (lstWhether.Count > 0)
               { %>
                <%= Html.Hidden("lblSonLa", (string)lstWhether[0], new { @id = "lblSonLa" })%>
                <%= Html.Hidden("lblHaiPhong", (string)lstWhether[1], new { @id = "lblHaiPhong" })%>
                <%= Html.Hidden("lblHaNoi", (string)lstWhether[2], new { @id = "lblHaNoi" })%>
                <%= Html.Hidden("lblVinh", (string)lstWhether[3], new { @id = "lblVinh" })%>
                <%= Html.Hidden("lblDaNang", (string)lstWhether[4], new { @id = "lblDaNang" })%>
                <%= Html.Hidden("lblNhaTrang", (string)lstWhether[5], new { @id = "lblNhaTrang" })%>
                <%= Html.Hidden("lblPleiku", (string)lstWhether[6], new { @id = "lblPleiku" })%>
                <%= Html.Hidden("lblTPHCM", (string)lstWhether[7], new { @id = "lblTPHCM" })%>
               <span style="padding-left:10px;">Nguồn: VnExpress.net</span>
               <br />
               <select id="cboWeather" class="slt-weather" onchange="showWeather_Lucnv(this.value);" style="font-size:11px; margin-left: 10px; margin-bottom: 10px;">
	                <option value="1">Sơn La</option>
	                <option value="2">Hải Phòng</option>
	                <option value="3">Hà Nội</option>
	                <option value="4">Vinh</option>
	                <option value="5">Đà Nẵng</option>
	                <option value="6">Nha Trang</option>
	                <option value="7">Pleiku</option>
	                <option value="8" selected>TP HCM</option>
                </select>
                <br />
               <span id="lblInfo" style="padding-left: 10px;"><%= (string)lstWhether[7] %></span>
            <%       
               }
            %>
        </div>
    </div>
    <!---------------------------------------- E ----------------------------------------->
</div>
